<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>精美选项卡</title>
  </head>
  <style>
    .tab {
      width: 800px;
      background-color: #f7f7f7;
      border-radius: 50px;
      margin: 50px auto 0;
      padding: 10px;
      text-align: center;
      font-size: 0;
    }
    .tab span {
      border: 1px solid red;
      height: 40px;
      line-height: 40px;
      display: inline-block;
      padding: 0 40px;
      font-size: 16px;
      border-radius: 20px;
    }
    .tab span i {
      display: inline-block;
      vertical-align: middle;
      width: 26px;
      height: 26px;
      margin-right: 5px;
      border: 1px solid red;
    }
    .tab .current {
      background-color: #fe94a9;
      color: #fff;
    }
  </style>
  <body>
    <div class="tab">
      <span class="current"><i class="icon1"></i>备孕期间</span>
      <span><i class="icon2"></i>怀孕</span>
      <span><i class="icon3"></i>0-1岁</span>
      <span><i class="icon4"></i>1-2岁</span>
      <span><i class="icon5"></i>2-3岁</span>
    </div>
  </body>
</html>
